package com.five.service.impl;

import com.five.mapper.NovelMapper;
import com.five.pojo.Novel;
import com.five.service.NovelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NovelServiceImpl implements NovelService {
    @Autowired
    private NovelMapper novelMapper;

    /**
     * 获取作者所有书籍
     * @param authorId
     * @return
     */
    @Override
    public List<Novel> getAuthorBooks(Long authorId) {
        return novelMapper.getAuthorBoozks(authorId);
    }
}
